package com.fasteat.mall.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hy
 * @since 2021-01-19
 */
@TableName("t_mall_logistics")
@ApiModel(value="TMallLogistics对象", description="")
public class Logistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物流id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "订单id")
    private String orderformId;

    @ApiModelProperty(value = "出发地址")
    private String departureAddr;

    @ApiModelProperty(value = "出发时间")
    @TableField(fill = FieldFill.INSERT)
    private Date departureTime;

    @ApiModelProperty(value = "抵达地址")
    private String arrivalAddr;

    @ApiModelProperty(value = "抵达时间")
    private Date arrivalTime;

    @ApiModelProperty(value = "物流状态 0-配送中 1-已送达")
    private Integer logisticsStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1、否0")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderformId() {
        return orderformId;
    }

    public void setOrderformId(String orderformId) {
        this.orderformId = orderformId;
    }

    public String getDepartureAddr() {
        return departureAddr;
    }

    public void setDepartureAddr(String departureAddr) {
        this.departureAddr = departureAddr;
    }

    public Date getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(Date departureTime) {
        this.departureTime = departureTime;
    }

    public String getArrivalAddr() {
        return arrivalAddr;
    }

    public void setArrivalAddr(String arrivalAddr) {
        this.arrivalAddr = arrivalAddr;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public Integer getLogisticsStatus() {
        return logisticsStatus;
    }

    public void setLogisticsStatus(Integer logisticsStatus) {
        this.logisticsStatus = logisticsStatus;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Logistics{" +
        "id=" + id +
        ", orderformId=" + orderformId +
        ", departureAddr=" + departureAddr +
        ", departureTime=" + departureTime +
        ", arrivalAddr=" + arrivalAddr +
        ", arrivalTime=" + arrivalTime +
        ", logisticsStatus=" + logisticsStatus +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        ", isDeleted=" + isDeleted +
        ", version=" + version +
        "}";
    }
}
